package com.city.service.pub.impl;

import com.city.domain.pub.PubSystem;
import com.city.repository.pub.PubSystemRepository;
import com.city.service.pub.PubSystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PubSystemServiceImpl implements PubSystemService {

    @Autowired
    private PubSystemRepository pubSystemRepository;


    /**
     * @deprecation 查找所有顶级子系统
     * @return pubSystemList
     * @author 雷楚桥
     * @date 2018/7/22 11:21
     */
    @Override
    public List<PubSystem> findAllTopSystem() {
        return pubSystemRepository.findAllSystemByParent(0);
    }
}
